<?php
/**
 * Created by PhpStorm.
 * User: 海峡
 * Date: 2021/1/27
 * Time: 10:47
 */namespace app\Traits;

 trait ResourceTrait
 {
    protected function format_error($msg='error',$data=[]){
        return ['status'=>false,'data'=>$data,'msg'=>$msg];
    }
 }
